#ifndef SANDLIGHT_H
#define SANDLIGHT_H

#include <QMainWindow>
class picDialog;
#include "picdialog.h"
#include "DealH/picDeal.h"
#include "DealH/everyClass.h"
#include "DealH/zero_threadpool.h"
#include <QtConcurrent>

QT_BEGIN_NAMESPACE
namespace Ui {
class sandLight;
}
QT_END_NAMESPACE

class sandLight : public QMainWindow
{
    Q_OBJECT

public:
    sandLight(QWidget *parent = nullptr);
    ~sandLight();
    bool writeSand(QString& fileName);

public:
    std::vector<QPushButton*> Btn;
    Ui::sandLight *ui;
private slots:
    void on_workBtn_clicked();

    void on_LoadPic_Btn_clicked();
signals:
    void updateProgress(int value);
private:
    picDialog** pD=nullptr;
    int PpicNum=1;
    bool makeT=false;
    rflRange* range=nullptr;
    // 在类中添加成员变量
    QFuture<bool> m_writeFuture;
};
#endif // SANDLIGHT_H
